#pragma once

class ITerminal
{
public:
	ITerminal() {};
	virtual ~ITerminal() {};

public:
	virtual bool			IsGroup()		{ return false; }
	virtual bool			IsConnection()	{ return false; }

public:
	virtual void			SetParent( ITerminal* pTerminal ) = 0;
	virtual ITerminal*		GetParent() const = 0;

	virtual void			SetName( std::tstring& strName ) = 0;
	virtual std::tstring	GetName() const = 0;

	virtual void			SetIP( std::tstring& strIP ) = 0;
	virtual std::tstring	GetIP() const = 0;

	virtual void			SetPort( std::tstring& strPort ) = 0;
	virtual std::tstring	GetPort() const = 0;

	virtual void			SetID( std::tstring& strID ) = 0;
	virtual std::tstring	GetID() const = 0;

	virtual void			SetPW( std::tstring& strPW ) = 0;
	virtual std::tstring	GetPW() const = 0;
};

